package ooday02zy1;

public class ExtendsTest {
    public static void main(String[] args) {
        Student yk=new Student("一坤",66,"武汉","aa203","0110");
        yk.sayHi();
        yk.study();
        yk.eat();
        Doctor ek=new Doctor("二坤",65,"山东","主任");
        ek.sayHi();
        ek.eat();
        ek.cut();
        Teacher SK=new Teacher("三坤",88,"非洲","10000000");
        SK.sayHi();
        SK.teach();
        SK.eat();





















        /*
        Student yk=new Student("一坤",66,"武汉","aa203","0110");
            yk.sayHi();
            yk.study();
            yk.eat();
            Doctor ek=new Doctor("二坤",65,"山东","主任");
            ek.sayHi();
            ek.eat();
            ek.cut();
            Teacher SK=new Teacher("三坤",88,"非洲","10000000");
            SK.sayHi();
            SK.teach();
            SK.eat();
*/
    }


}
